<template>
  <div>
    <!-- 轮播图 -->
    <div>
      <el-carousel :interval="5000" arrow="always" id="lunbo">
        <el-carousel-item v-for="item in list" :key="item.title">
          <img :src="item.url" alt="logo">
        </el-carousel-item>
      </el-carousel>
    </div>
    <!-- 关于三鼎 -->
    <div class="wrap_sanding">
      <div class="sanding">
        <div class="s_left">
            <span class="about">关于</span><span class="san">三鼎</span>
            <p class="s_text">竭尽所能为用户提供优质的产品和可靠的技术保证</p>
            <p class="s_content">　　三鼎集团，创建于2005 年，集团位于享有广东东莞后花园美誉的水濂山周边，十六年深耕信息化系统集成的可研、设计、实施及维护，是行业内少数坚持"不转包、不分包、不挂靠"的智慧城市信息化服务商。具备信息化、智能化高端服务的能力，并获得包括涉密信息系统集成、电子与建筑智能化、信息系统建设和服务能力等行业内优秀资质。2015年至今，三鼎集团投入大量研发经费，打造出"Future Central Connect"、"WISEMAN"两大基础开发平台。通过这两大平台，实现了不同种类、不同品牌、不同传输协议的所有新旧智能设备的接入，真正做到万物互联、数据互通;同时，三鼎集团通过可视化大数据分析中心建设实现人、物、事进行全联接，打造服务便捷、管理睿智、生活智能、优活宜居的城市新生态，顺应政府新基建政策，助力城市向数字经济转型，全维度助推智慧城市发展新方向。 </p>
        </div>
        <div class="s_right">
            <img src="../assets/images/ditu2.png" alt="">
        </div>
      </div>
      <div class="wrap_nav">
        <ul class="nav">
          <li>
            <div class="icon"><img src="../assets/picture/sd_index_icon1.png" alt=""></div>
            <div class="nav_command"><p>公司简介</p><p>Company profile</p></div>
            <div class="animate"></div>
          </li>
          <li>
            <div class="icon"><img src="../assets/picture/sd_index_icon3.png" alt=""></div>
            <div class="nav_command"><p>发展历程</p><p>development</p></div>
            <div class="animate"></div>

          </li>
          <li>
             <div class="icon"><img src="../assets/picture/sd_index_icon2.png" alt=""></div>
            <div class="nav_command"><p>组织构架</p><p>Organizational</p><p>structure</p></div>
            <div class="animate"></div>

          </li>
          <li>
             <div class="icon"><img src="../assets/picture/sd_index_icon4.png" alt=""></div>
             <div class="nav_command"><p>集团荣誉</p><p>honor</p></div>
            <div class="animate"></div>

          </li>
        </ul>
        <ul>
          <li></li>
          <li></li>
          <li></li>
          <li></li>
        </ul>
      </div>
    </div>
    <!-- 解决方案 -->
    <div class="wrap_solve">
      <div class="solve">
        <div class="sol_left">
          <div class="s_s_left"><p>SYSTEM</p><p>SOLUTIONS</p><p>解决方案</p></div>
          <div class="s_s_right"><p>通过三鼎集团打造出“WISEMAN”、“Future Central Connect”两大基础开发平台，实现了不同种类、不同品牌、不同传输协议的所有新旧智能设备的接入，真正做到万物互联、数据互通；通过三鼎未来智慧城市可视化大数据分析中心，真正实现了智慧城市信息化。</p></div>
        </div>
        <div class="sol_right">
            <a href="">查看更多</a>
        </div>
      </div>
    </div>
    <!-- 展示方案 -->
    <div class="solution-list" style="background: #f0f0f0;">
      <div class="case_content">
        <div class="item_box">
          <SolutionWidget
            v-for="item in solutions"
            :key="item.url"
            :url="item.url"
            :title="item.title"
            :desc="item.desc"
          ></SolutionWidget>
        </div>
      </div>
    </div>
    <!-- 新闻中心 -->
    <div class="news">
      <div class="news_head">
        <div class="news_name">
          <h2>
            <span style="display:inline;line-height:1.6;font-size:36px;font-family:微软雅黑;color:#e22c1b">新闻</span>
            <span style="display:inline;line-height:1.6;font-size:36px;font-family:微软雅黑;color:#3e3a39">资讯</span>
          </h2>
          <span class="news-b">网罗行业热点，聚焦金锐显风采</span>
        </div>
      </div>
      <div class="news_main">
        <div class="left_img">
          <router-link to="/news">
            <img src="@/assets/rto1.jpg" alt="激扬青春，放飞梦想，一致同行">
            <em>激扬青春，放飞梦想，一致同行</em>
          </router-link>
        </div>
        <div class="right_list">
          <ul>
            <li v-for="item in indexNews" :key="item.articleId" class="news-e">
              <a :href="`/article-${item.articleId}`" style="display: block;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">
                {{ item.title }}
              </a>
            </li>
          </ul>
        </div>
      </div>
    </div>
    <!-- 三鼎实业 -->
    <div class="industry" style="background-color: #f0f0f0;">
      <div class="industry_content">
        <div class="industry_box">
          <div class="img_box fadeInLeft animated" style="visibility: visible; animation-name: fadeInLeft;">
            <img src="@/assets/ditu2.png" alt="三鼎集团" title="三鼎集团" width="100%" height="100%">
          </div>
          <div class="info_box">
            <div class="info_wrap fadeInRight animated" style="visibility: visible; animation-name: fadeInRight;">
              <div class="title">
                <h2>
                  <span style="line-height:1.4;color:#3e3a39;font-size:1.875rem;font-family:微软雅黑">
                    <strong>三鼎集团</strong>
                  </span>
                </h2>
              </div>
              <div class="fline">
                <div class="line"></div>
              </div>
              <div class="desc">
                <div>
                  <h6>
                    <span style="display:inline-block;text-indent:2em;line-height:2;color:#3e3a39;font-size:1rem;font-family:微软雅黑">
                      三鼎集团专注于打破数据壁垒、联通数据孤岛，真正实现“万物互联、数据互通”，实现数据的可视化应用，技术水平属行业领先地位。集团下属子公司涵盖“智慧城市”信息化的研发、实施、运营、代建等全链条服务。通过以技术立足、产品立业、担当立身，打造有广度、有深度、有温度的智慧城市。
                    </span>
                  </h6>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import SolutionWidget from '@/components/SolutionWidget.vue'
import solutions from '@/fake-data/solutions'
import indexNews from '@/fake-data/index-news'

export default {
  name: 'IndexView',
  components: {
    SolutionWidget
  },
  data () {
    return {
      solutions,
      indexNews,
      list: [
        {
          url: require('../assets/images/lunbo_01.jpg'),
          title: 1
        },
        {
          url: require('../assets/images/lunbo_01.png'),
          title: 2
        },
        {
          url: require('../assets/images/lunbo_02.jpg'),
          title: 3
        }
      ]
    }
  }
}
</script>

<style lang="less" scoped>
.header {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
// 轮播图
#lunbo{
  width: 100%;
  height: 500px;

}
#lunbo ::v-deep .el-carousel__container{
  width: 100%;
  height: 500px;
}
#lunbo img{
  width: 100%;
  height: 100%;
}
 .el-carousel__item h3 {
    color: #475669;
    font-size: 18px;
    opacity: 0.75;
    line-height: 300px;
    margin: 0;
  }
  .el-carousel__item:nth-child(2n) {
    background-color: #99a9bf;
  }

  .el-carousel__item:nth-child(2n+1) {
    background-color: #d3dce6;
  }
// 关于三鼎
.wrap_sanding{
  width: 100%;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-image: url("../assets/picture/sd_index_bg1.png");
  background-attachment: fixed;
}
.sanding{
  width: 1620px;
  padding: 50px 0px;
  margin: auto;
  display: flex;

}
.about{
  font-size: 36px;
  color: #e22c1b;
  line-height: 1.6;

}
.san{
  font-size: 36px;
  color: black;
  line-height: 1.6;
  margin: 0px 20px;
}
.s_text{
  font-size: 14px;
  line-height: 1.6;
}
.s_content{
  font-size: 16px;
  text-indent: 2em;
  color: #3e3a39;
  line-height: 2;
  font-family: 微软雅黑;
  margin-top: 50px;
}
.s_left{
  flex: 1;
}

.s_right{
  flex: 1;
  margin-left: 50px;
  box-sizing: border-box;
}
.s_right>img{
  width: 100%;
}
.wrap_nav{
  width: 100%;
}
.nav{
  width: 1620px;
  display: flex;
  margin: auto;
  // justify-content: center;
}
.nav>li{
  position: relative;
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  margin: 50px auto 0px;
  position: relative;
  padding: 10px 0px;
  // background-color: #3e3a39;
}
.nav>li>div{
  margin: 0px 10px;
}
.nav>li:not(:last-child)::after{
  position: absolute;
  content: "";
  display: block;
  width: 1px;
  height: 50px;
  background-color:#A5A5A5 ;
  right: 0px;
}
.nav_command>p:first-child{
  font-size: 20px;
  line-height: 1.5;
}

.nav_command>p:not(first-child){
  font-size: 14px;
  line-height: 1.5;
}
.nav>li:hover .animate{
  animation: animate linear .3s;
  animation-fill-mode: both;
  background-color: #E85A58;
}

.nav_command,.icon{
  z-index: 10;
}

.animate{
  position: absolute;
  width: 100%;
  bottom: 0px;
  z-index: 0;
}
//动画
@keyframes animate{
  0%{
    height: 0px;
  }
  100%{
    height: 100%;
  }
}
// 解决方案
.wrap_solve{
  background-color: white;
  padding: 100px 0px;
}
.solve{
  width: 1620px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sol_left{
   display: flex;
   flex: 2;
  //  background-color: pink;
}
.sol_right{
  flex: 1;
  // background-color: #3e3a39;
  text-align: right;
}

.s_s_left:nth-child(1){
  line-height: 1.4;
  font-size: 24px;
  color: #afafaf;
  font-family: 微软雅黑;
}
.s_s_right{
  padding: 0px 50px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}
.sol_right>a{
  font-size: 14px;
  color: #707070;
}
.s_s_right::before{
  content: "";
  display: block;
  margin-right: 20px;
  width: 100px;
  height: 4px;
  background-color: #e22c1b;
}
.solution-list {
  width: 100%;
  min-width: 0;
  height: auto;
  max-height: none;
  min-height: 192px;
  margin: 0 auto;
  padding: 0;
  .case_content {
    padding: 68px 0 48px 0;
    .item_box {
      display: flex;
      flex-wrap: wrap;
      margin: 0 auto;
      width: 1620px;
      .item:nth-child(3n) {
        margin-right: 0;
      }
    }
  }
}

.news {
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
  padding: 48px 0 68px 0;
  .news_head {
    margin: 0 auto;
    max-width: 1620px;
    .news_name {
      font-size: 24px;
      line-height: 30px;
      .news-b {
        display: block;
        font-size: 14px;
        color: #666;
        font-weight: normal;
      }
    }
  }
  .news_main {
    display: flex;
    justify-content: space-between;
    max-width: 1620px;
    margin: 36px auto 0 auto;
    .left_img {
      width: 33.5%;
      position: relative;
      img {
        width: 100%;
      }
      em {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        background: rgba(215, 44, 67, .8);
        font-size: 16px;
        color: #fff;
        line-height: 36px;
        text-align: center;
        height: 36px;
        display: -webkit-box;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
      }
    }
    .right_list {
      width: 62.5%;
      ul li {
        float: left;
        width: 48%;
        margin: 0 4% 0 0;
        border-bottom: #ccc 1px solid;
        a {
          color: #444;
        }
        a:hover {
          color: #0a408a;
        }
      }
      li:nth-child(2n) {
        margin: 0;
      }
      .news-e {
        padding: 10px 0;
        font-size: 18px;
      }
    }
  }
}

.industry {
  margin: 0 auto;
  height: auto;
  min-height: 12rem;
  .industry_content {
    width: 100%;
    padding: 4.25rem 0;
    .industry_box {
      display: flex;
      width: 94%;
      max-width: 101.25rem;
      margin: 0 auto;
      .img_box {
        margin: 0;
        width: 57.9405%;
      }
      .info_box {
        width: 37.0595%;
        margin-left: 5%;
        .info_wrap {
          min-height: 0;
          margin: 30% auto 0;
        }
      }
    }
  }
}

.fline {
  width: 100%;
  max-width: 4.3125rem;
  min-width: 0;
  height: auto;
  max-height: none;
  min-height: 1.25rem;
  margin: 0 auto .5rem 0;
  .line {
    width: 100%;
    border-top: .1875rem solid #e22c1b;
    display: inline-block;
    vertical-align: middle;
    opacity: 1;
  }
}

em {
  font-style: normal;
}
</style>
